import request from './request'
import { commonParams, param } from './config'

export function getRecommend() {
  let url = '/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg'
  const data = Object.assign({}, commonParams, {
    platform: 'h5',
    uin: 0,
    needNewCode: 1
  })
  url += (url.indexOf('?') < 0 ? '?' : '&') + param(data)

  return request({
    url,
    method: 'get'
  })
}
